home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / comm / bbs / wwbbs31_source.lha / WWBBS / Handler / aux_debug.c < prev    next >
C/C++ Source or Header  |  1994-08-14  |  436b  |  28 lines

  1. #include <exec/types.h>
  2. #include <exec/exec.h>
  3. #include <stdio.h>
  4. #include <string.h>
  5.  
  6. #include <proto/exec.h>
  7.  
  8. void main()
  9.     {
  10.         struct MsgPort *port;
  11.         if(port=CreatePort("AUX Debug",0))
  12.             {
  13.                 while(1)
  14.                     {
  15.                         WaitPort(port);
  16.                         {
  17.                             struct Message *msg;
  18.                             while(msg=GetMsg(port))
  19.                                 {
  20.                                     printf("%s\n",msg->mn_Node.ln_Name);
  21.                                     ReplyMsg(msg);
  22.                                 }
  23.                         }
  24.                 }
  25.                 DeletePort(port);
  26.             }
  27.     }
  28.